<?php

/*
	Class: Cts_State

	About: Author
		artwells

	About: License
		<http://communit.as/docs/license>

	About: See Also
		Zend_Registry, Cts_Registry
*/
class Cts_State{

	/* Group: Static Methods */

	/*
		Function: get
			Gets a setting from the state.

		Arguments:
			setting - The name of the setting.
			default (optional) - The default value of the registry setting, if not found.

		Returns:
			The value of the registry setting.
	*/
	public static function get($ckey, $locale='en-us') {
		$value = null;
		$state_table = new State();
		if($state_table->keyExists($ckey,$locale)){
		  $value = $state_table->get($ckey,$locale);
		} 	
		return $value;
	}

	public static function set($ckey, $value,$locale='en-us') {
		$state_table = new State();
		$result = $state_table->set($ckey,$value,$locale);
		return $result;
	}
	
}
